import Vue from 'vue';
import App from './App'
import router from './router';
import store from './store';
import filter from './filter';

import iView from 'iview';
import 'iview/dist/styles/iview.css'; 
import  Tree from 'element-ui';
import "babel-polyfill";
Vue.use(Tree)
Vue.config.productionTip = true;
// 请求组件
import http from './config/http';
Vue.prototype.$ajax = http;
Vue.prototype.urlPath="http://mamst.bizideal.cn:8081/mams-mgr/api/"
//Vue.prototype.urlPath="http://10.1.0.29:8081/hr-manager/api/"
//过滤器
Object.keys(filter).forEach(key => {
  Vue.filter(key, filter[key])
})
Vue.use(router);
Vue.use(iView)
// 初始化
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: {
    App
  }
})
